<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Title</title>
</head>
<link href="../static/css/bootstrap.min.css" rel="stylesheet"/>
<link href="../static/css/bootstrap-combined.min.css" rel="stylesheet"/>
<script src="../static/js/jquery-3.2.0.min.js"></script>
<script src="../static/js/bootstrapValidator.js"></script>
<script src="../static/js/bootstrap.min.js"></script>
<script src="../static/js/AjaxModel.js"></script>
<script src="../static/js/Excomm.js"></script>

<body>
<div th:include="header::header"></div>

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="row-fluid">
                <div class="span3">
                </div>
                <div class="span6">
                    <table class="table">
                        <thead>
                        <tr>
                            <th>
                                汽车型号
                            </th>
                            <th>
                                卖家电话
                            </th>
                            <th>
                                买家电话
                            </th>
                            <th>
                                售卖价格
                            </th>
                            <th>
                                创建日期
                            </th>
                        </tr>
                        </thead>
                        <tbody id="transactionList">
                        </tbody>
                    </table>
                    </div>
                <div class="span3">
                </div>
            </div>
        </div>
    </div>
</div>
<script th:inline="javascript">
    $(function () {


        var s = [[${content}]];
        for (var i = 0; i < s.length; i++) {
            $("#transactionList").append("<tr  class='info'>"
                    + "<td >"
                    + s[i].carXinghao
                    + "</td>"
                    + "<td>"
                    + s[i].salePhone
                    + "</td>"
                    + "<td>"
                    + s[i].buyPhone
                    + "</td>"
                    + "<td>"
                    + s[i].saleMoney+"（万元）"
                    + "</td>"
                    + "<td>"
                    + Excomm.transDate(s[i].saleTime)
                    + "</td>"
                    + "</tr>"
                    )
        }
    })
        /*]]>*/

</script>
</body>
</html>

